package cn.kgm.interfaceEnum;


/**
 * @Version 1.8
 * @Author: Kappi
 * @Date: 2023-12-19 13:41
 * @Description: cn.kgm.interfaceEnum.OrderInterface
 */
public interface OrderInterface {

    String getValue();

    enum OrderStatus implements OrderInterface {
        /**
         * 错误
         */
        ERROR("ERROR"),
        /**
         * 成功
         */
        SUCCESS("SUCCESS");

        String value;

        OrderStatus(String value) {
            this.value = value;
        }

        @Override
        public String getValue() {
            return this.value;
        }
    }

    enum PayStatus implements OrderInterface {
        /**
         * 已支付
         */
        PAYED("PAYED"),
        /**
         * 等待支付
         */
        AWAIT("AWAIT");

        String value;

        PayStatus(String value) {
            this.value = value;
        }

        @Override
        public String getValue() {
            return this.value;
        }
    }
}
